.. _CAIGroup Class: ========================== CAIGroup Class ========================== .. toctree:: :maxdepth: 1 * :ref:`Overview` * :ref:`Quick Reference` * :ref:`Methods` ---- .. _CAIGroup_Overview: Overview --------------- .. note:: The **CAIGroup** class handles group selection of party, characters and/or allied creatures The structure used for this class is :ref:`CAIGroup` ---- .. _CAIGroup_QuickRef: Quick Reference --------------- +----------------------------------------------------------------------------------------------------------------------------------------------------+ | **Quick Ref** | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | POSITION\* **CAIGroup\:\:Add**\(long spriteIndex) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:Add**\(:ref:`CGameSprite`\* pSprite) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:AddEffect**\(:ref:`CGameEffect`\* effect) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:AddToSearch**\(:ref:`CSearchBitmap`\* search) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:AddTrigger**\(:ref:`CAITrigger`\& trigger) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:ClearActions**\() | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:FollowLeader**\(:ref:`CPoint` target, int additive) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | short\* **CAIGroup\:\:GetFacings**\(short formationType, short direction) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | long **CAIGroup\:\:GetGroupLeader**\() | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | long\* **CAIGroup\:\:GetGroupList**\() | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`CPoint`\* **CAIGroup\:\:GetOffsets**\(short formationType, short direction, unsigned char bFullParty) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:GroupAction**\(:ref:`CAIAction` action, int override, :ref:`CAIAction`\* leaderAction) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:GroupCancelMove**\() | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:GroupDrawMove**\(:ref:`CPoint` target, short formationType, :ref:`CPoint` cursor) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:GroupProtectPoint**\(:ref:`CPoint` target, short formationType, :ref:`CPoint` cursor, long range) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:GroupSetTarget**\(long iObject) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:GroupSetTarget**\(:ref:`CPoint` target, int additive, short formationType, :ref:`CPoint` cursor) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:HandleFollowPath**\(long\* pPath, short nPath, :ref:`CPoint` target, :ref:`CPoint` start, int additive) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | int **CAIGroup\:\:InList**\(long index) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | int **CAIGroup\:\:IsPartyLeader**\() | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:Remove**\(long id) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:Remove**\(:ref:`CGameSprite`\* pSprite) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:RemoveFromSearch**\(:ref:`CSearchBitmap`\* search) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | virtual void __cdecl **CAIGroup\:\:RotateOffsets**\(:ref:`CPoint`\* offsets, short numOffsets, short degreesOfRotation) = 0 | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:SetGroupTriggerId**\(long triggerId) | +----------------------------------------------------------------------------------------------------------------------------------------------------+ | void **CAIGroup\:\:Sort**\() | +----------------------------------------------------------------------------------------------------------------------------------------------------+ ---- .. _CAIGroup_Methods: Methods --------------- +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | **Name** | **Description** | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:Add` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:Add` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:AddEffect` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:AddToSearch` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:AddTrigger` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:ClearActions` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:FollowLeader` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:GetFacings` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:GetGroupLeader` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:GetGroupList` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:GetOffsets` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:GroupAction` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:GroupCancelMove` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:GroupDrawMove` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:GroupProtectPoint` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:GroupSetTarget` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:GroupSetTarget` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:HandleFollowPath` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:InList` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:IsPartyLeader` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:Remove` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:RemoveFromSearch` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:RotateOffsets` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:SetGroupTriggerId` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ | :ref:`CAIGroup\:\:Sort` | | +-----------------------------------------------------------------+-----------------------------------------------------------------------------------------+ ---- .. _CAIGroupAdd: CAIGroup\:\:Add ^^^^^^^^^^^^^^^ :: POSITION* CAIGroup::Add(long spriteIndex); **Parameters** * ``long`` *spriteIndex* - **Return Value** ``POSITION`` **Remarks** ---- .. _CAIGroupAdd2: CAIGroup\:\:Add ^^^^^^^^^^^^^^^ :: void CAIGroup::Add(CGameSprite* pSprite); **Parameters** * :ref:`CGameSprite`\* *pSprite* - **Remarks** ---- .. _CAIGroupAddEffect: CAIGroup\:\:AddEffect ^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::AddEffect(CGameEffect* effect); **Parameters** * :ref:`CGameEffect`\* *effect* - **Remarks** ---- .. _CAIGroupAddToSearch: CAIGroup\:\:AddToSearch ^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::AddToSearch(CSearchBitmap* search); **Parameters** * :ref:`CSearchBitmap`\* *search* - **Remarks** ---- .. _CAIGroupAddTrigger: CAIGroup\:\:AddTrigger ^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::AddTrigger(CAITrigger& trigger); **Parameters** * :ref:`CAITrigger`\& *trigger* - **Remarks** ---- .. _CAIGroupClearActions: CAIGroup\:\:ClearActions ^^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::ClearActions(); **Remarks** ---- .. _CAIGroupFollowLeader: CAIGroup\:\:FollowLeader ^^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::FollowLeader( CPoint target, int additive); **Parameters** * :ref:`CPoint` *target* - * ``int`` *additive* - **Remarks** ---- .. _CAIGroupGetFacings: CAIGroup\:\:GetFacings ^^^^^^^^^^^^^^^^^^^^^^ :: short* CAIGroup::GetFacings( short formationType, short direction); **Parameters** * ``short`` *formationType* - * ``short`` *direction* - **Return Value** ``short*`` **Remarks** ---- .. _CAIGroupGetGroupLeader: CAIGroup\:\:GetGroupLeader ^^^^^^^^^^^^^^^^^^^^^^^^^^ :: long CAIGroup::GetGroupLeader(); **Return Value** ``long`` **Remarks** ---- .. _CAIGroupGetGroupList: CAIGroup\:\:GetGroupList ^^^^^^^^^^^^^^^^^^^^^^^^ :: long* CAIGroup::GetGroupList(); **Return Value** ``long``\* **Remarks** ---- .. _CAIGroupGetOffsets: CAIGroup\:\:GetOffsets ^^^^^^^^^^^^^^^^^^^^^^ :: CPoint* CAIGroup::GetOffsets( short formationType, short direction, unsigned char bFullParty); **Parameters** * ``short`` *formationType* - * ``short`` *direction* - * ``unsigned char`` *bFullParty* - **Return Value** :ref:`CPoint`\* **Remarks** ---- .. _CAIGroupGroupAction: CAIGroup\:\:GroupAction ^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::GroupAction( CAIAction action, int override, CAIAction* leaderAction); **Parameters** * :ref:`CAIAction` *action* - * ``int`` *override* - * :ref:`CAIAction`\* *leaderAction* - **Return Value** **Remarks** ---- .. _CAIGroupGroupCancelMove: CAIGroup\:\:GroupCancelMove ^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::GroupCancelMove(); **Remarks** ---- .. _CAIGroupGroupDrawMove: CAIGroup\:\:GroupDrawMove ^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::GroupDrawMove( CPoint target, short formationType, CPoint cursor); **Parameters** * :ref:`CPoint` *target* - * ``short`` *formationType* - * :ref:`CPoint` *cursor* - **Remarks** ---- .. _CAIGroupGroupProtectPoint: CAIGroup\:\:GroupProtectPoint ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::GroupProtectPoint( CPoint target, short formationType, CPoint cursor, long range); **Parameters** * :ref:`CPoint` *target* - * ``short`` *formationType* - * :ref:`CPoint` *cursor* - * ``long`` *range* - **Remarks** ---- .. _CAIGroupGroupSetTarget: CAIGroup\:\:GroupSetTarget ^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::GroupSetTarget(long iObject); **Parameters** * ``long`` *iObject* - **Remarks** ---- .. _CAIGroupGroupSetTarget2: CAIGroup\:\:GroupSetTarget ^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::GroupSetTarget( CPoint target, int additive, short formationType, CPoint cursor); **Parameters** * :ref:`CPoint` *target* - * ``int`` *additive* - * ``short`` *formationType* - * :ref:`CPoint` *cursor* - **Remarks** ---- .. _CAIGroupHandleFollowPath: CAIGroup\:\:HandleFollowPath ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::HandleFollowPath( long* pPath, short nPath, CPoint target, CPoint start, int additive); **Parameters** * ``long``\* *pPath* - * ``short`` *nPath* - * :ref:`CPoint` *target* - * :ref:`CPoint` *start* - * ``int`` *additive* **Remarks** ---- .. _CAIGroupInList: CAIGroup\:\:InList ^^^^^^^^^^^^^^^^^^ :: int CAIGroup::InList(long index); **Parameters** * ``long`` *index* - **Return Value** ``int`` **Remarks** ---- .. _CAIGroupIsPartyLeader: CAIGroup\:\:IsPartyLeader ^^^^^^^^^^^^^^^^^^^^^^^^^ :: int CAIGroup::IsPartyLeader(); **Return Value** ``int`` **Remarks** ---- .. _CAIGroupRemove: CAIGroup\:\:Remove ^^^^^^^^^^^^^^^^^^ :: void CAIGroup::Remove(long id); **Parameters** * ``long`` *id* - **Remarks** ---- CAIGroup\:\:Remove ^^^^^^^^^^^^^^^^^^ :: void CAIGroup::Remove(CGameSprite* pSprite); **Parameters** * :ref:`CGameSprite`\* *pSprite* - **Remarks** ---- .. _CAIGroupRemoveFromSearch: CAIGroup\:\:RemoveFromSearch ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::RemoveFromSearch(CSearchBitmap* search); **Parameters** * :ref:`CSearchBitmap`\* *search* - **Remarks** ---- .. _CAIGroupRotateOffsets: CAIGroup\:\:RotateOffsets ^^^^^^^^^^^^^^^^^^^^^^^^^ :: virtual void __cdecl CAIGroup::RotateOffsets( CPoint* offsets, short numOffsets, short degreesOfRotation); **Parameters** * :ref:`CPoint`\* *offsets* - * ``short`` *numOffsets* - * ``short`` *degreesOfRotation* - **Remarks** ---- .. _CAIGroupSetGroupTriggerId: CAIGroup\:\:SetGroupTriggerId ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: void CAIGroup::SetGroupTriggerId(long triggerId); **Parameters** * ``long`` *triggerId* - **Remarks** ---- .. _CAIGroupSort: CAIGroup\:\:Sort ^^^^^^^^^^^^^^^^ :: void CAIGroup::Sort(); **Remarks**